Hello. I am working on compustat and I would like to generate the time series standard deviations of 5-year rolling winods of Sales. Specifically, the time series for the volatility of X_{t} is
\sigma(X_{t}) = \sqrt{\frac{\sum_{\tau = t-2}^{t+3} (X_{\tau} - \Bar{X}_{t})^2}{5}}
Can any one please help?
\sigma(X_{t}) = \sqrt{\frac{\sum_{\tau = t-2}^{t+3} (X_{\tau} - \Bar{X}_{t})^2}{5}}
Can any one please help?

Comment